package test;

import java.io.File;
import java.util.ArrayList;
import java.util.HashSet;

public class FileSort {
	public static void main(String[] args) {
		char[] c = { '\u0061' };
		ArrayList<String> list = new ArrayList<String>();
		for (int i = 0; i < 26; i++) {
			list.add(new String(c).toUpperCase());
			c[0]++;
		}
//		for(String s:list){
//			File file=new File(s);
//			file.mkdir();
//		}

		File file = new File(".");
		File[] files = file.listFiles();
		System.out.println(files.length);
		for (File f : files) {
			if (f.getName().endsWith(".mp3")) {
				String dir = ("" + f.getName().charAt(0)).toUpperCase();
				f.renameTo(new File(dir, f.getName()));
			}
		}

	}
}
